package com.bootdo.system.controller;

import com.bootdo.system.domain.ApptupianDO;
import com.bootdo.system.service.ApptupianService;
import com.bootdo.system.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class DownloadAppController {

    @Autowired
    private ApptupianService apptupianService;

    @GetMapping("/downloadapp")
    public R downloadapp() {

        ApptupianDO downpic = apptupianService.get(7);

        return R.ok().put("downpic",downpic);
    }
}
